package com.cy2;
/*
用来测试泛型类
 */
public class GenericDemo {
    public static void main(String[] args) {
        Generic<String> s = new Generic<>();
        s.setT("陈勇最帅！");
        System.out.println(s.getT());
        Generic<Integer> i = new Generic<>();
        i.setT(25);
        System.out.println(i.getT());
    }
}
